/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022.
 * Description: rq clock corrupt module initialization
 * Author: yangzhuohao <yangzhuohao1@huawei.com>
 * Create: 2022-09-13
 */
#ifndef RQ_CLOCK_CORRUPT_DFX_H
#define RQ_CLOCK_CORRUPT_DFX_H
#include <linux/types.h>

#define MAX_PRINT_TIMES 10

extern bool rq_clock_corrupt_check_enable;

static inline bool is_rq_clock_corrupt_check_enable(void)
{
	return rq_clock_corrupt_check_enable;
}

void check_rq_clock(struct rq *rq);
void update_last_clock(struct rq *rq);
#endif /* RQ_CLOCK_CORRUPT_DFX_H */
